<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

return new class extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('game_projects', function (Blueprint $table) {
            $table->engine  = 'InnoDB';
            $table->comment('游戏项目');

            $table->increments('id');
            $table->integer('create_time')->comment('创建时间')->unsigned()->default(0);
            $table->string('name', 32)->comment('项目名称')->default('');
            $table->string('flag', 16)->comment('项目标识')->default('');
            $table->string('cp_name', 64)->comment('cp厂商')->default('');
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('game_projects');
    }
};
